﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.Supervise.Model
{
    [Table(TableName = "TB_MessageTypeDetail")]
    [Serializable()]
    public class MessageTypeDetail
    {
        /// <summary>
        /// 规则详细编号
        /// </summary>
        [HZ.Column(PrimaryKey = true)]
        public string MessageDetailId { get; set; }

        /// <summary>
        /// 原规则编号
        /// </summary>
        public int TypeId { get; set; }

        /// <summary>
        /// 原规则名称
        /// </summary>
        public string TypeName { get; set; }

        /// <summary>
        /// 关键字
        /// </summary>
        public string TypeKey { get; set; }

        /// <summary>
        /// 用户编号
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 地区 编号
        /// </summary>
        public string AreaId { get; set; }

        /// <summary>
        /// 地区名称
        /// </summary>
        public string AreaName { get; set; }

        /// <summary>
        /// 周期数量
        /// </summary>
        public int Days { get; set; }

        /// <summary>
        /// 周期类型，年，月，日
        /// </summary>
        public string DayType { get; set; }


        /// <summary>
        /// 医院名称
        /// </summary>
        public string HospitalName { get; set; }

        /// <summary>
        /// 医院编号
        /// </summary>
        public string HospitalId { get; set; }

        /// <summary>
        /// 企业编号
        /// </summary>
        public string CompanyId { get; set; }

        /// <summary>
        /// 企业名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 药品类型编号
        /// </summary>
        public string SortId { get; set; }


        /// <summary>
        /// 药品编号名称
        /// </summary>
        public string SortName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 药品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 药品编号
        /// </summary>
        public string GoodsID { get; set; }

        /// <summary>
        /// 预警数量范围左边数据
        /// </summary>
        public double CountLeft { get; set; }

        /// <summary>
        /// 预警数量范围右边数据
        /// </summary>
        public double CountRight { get; set; }

        /// <summary>
        /// 预警数量范围左边比较方式（1大于等于 0小于等于）
        /// </summary>
        public int CountParentLeft { get; set; }

        /// <summary>
        /// 预警数量范围右边比较方式（1大于等于 0小于等于）
        /// </summary>
        public int CountParentRight { get; set; }


        /// <summary>
        /// 预警金额范围左边数据
        /// </summary>
        public decimal AmountLeft { get; set; }

        /// <summary>
        /// 预警金额范围右边数据
        /// </summary>
        public decimal AmountRight { get; set; }

        /// <summary>
        /// 预警金额范围左边比较方式（1大于等于 0小于等于）
        /// </summary>
        public int AmountParentLeft { get; set; }

        /// <summary>
        /// 预警金额范围右边比较方式（1大于等于 0小于等于）
        /// </summary>
        public int AmountParentRight { get; set; }

        /// <summary>
        /// 采购类型：1.日常采购,2.临时采购,3.应急采购
        /// </summary>
        public string SortSource { get; set; }

        /// <summary>
        /// 标识规则按照预警金额和预警数量判断的方式（1 两者都满足 0两者任意一个满足)
        /// </summary>
        public int ConnectType { get; set; }


        /// <summary>
        /// 预警级别
        /// </summary>
        public string Level { get; set; }

      
        /// <summary>
        /// 是否启用 true 启用，false 不启用
        /// </summary>
        public bool Is_Work { get; set; }

        /// <summary>
        /// Sql查询where语句
        /// </summary>
        public string SqlStringWhere { get; set; }

        /// <summary>
        /// Sql查询having语句
        /// </summary>
        public string SqlStringHaving { get; set; }

        /// <summary>
        /// Sql查询描述语句
        /// </summary>
        public string SqlDescription { get; set; }

        /// <summary>
        /// 是否删除，0否，1是
        /// </summary>
        public bool Is_Del { get; set; }

        /// <summary>
        /// 是否已读 0否，1是
        /// </summary>
        public bool Is_read { get; set; }
      
    }
}
